<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用戶管理</title>
    <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="./lib/bootstrap-validator/css/bootstrapValidator.css">
    <link rel="stylesheet" href="./lib/nprogress/nprogress.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/user.css">
    <style>
    </style>
</head>

<body>
    <!--左边区域 -->
    <div class="lt-indx-l indx-transit">
        <h3>黑马商城</h3>
        <div class="default">
            <img src="./images/default.png" alt="">
            <p>超级管理员</p>
        </div>
        <ul class="indx-val">
            <li class="indx-current"><a href="./user.html"> <i class="glyphicon glyphicon-user"></i>用户管理</a></li>
            <li class="classify">
                <a href="#"><i class="glyphicon glyphicon-list"></i>分类管理</a>
                <ul class="dsp-no">
                    <li><a href="./one.html">一级分类</a></li>
                    <li><a href="./tow.html">二级分类</a></li>
                </ul>
            </li>
            <li><a href="./product.html"><i class="glyphicon glyphicon-gift"></i>商品管理</a></li>
        </ul>
    </div>
    <!-- 右边内容区域 -->
    <div class="lt-indx-r pd-180 indx-transit">
        <!-- 顶部区域 -->
        <div class="tp-conten pd-180 indx-transit">
            <a href="#" class="icon-menu pull-left"><i class="glyphicon glyphicon-menu-hamburger"></i></a>
            <a href="#" class="icon-logout pull-right"><i class="glyphicon glyphicon-log-out"></i></a>
        </div>
        <!-- 下面的内容 -->
        <div class="content-but pd-15">
            <!-- bootstrap插件 路径导航  -->
            <ol class="breadcrumb">
                <li><a href="./index.html">管理系统</a></li>
                <li class="active">用户管理</li>
            </ol>

            <!-- 内容 -->
            <div>
                <table class="table table-bordered table-hover text-center us-tab">
                    <thead>
                        <th>序号</th>
                        <th>用户名</th>
                        <th>手机号</th>
                        <th>状态</th>
                        <th>操作</th>
                    </thead>
                    <tbody>
                        <tr>
                            <td>1</td>
                            <td>aaa</td>
                            <td>12366456456</td>
                            <td>正常</td>
                            <td>
                                <button class="btn btn-danger">禁止</button>
                            </td>
                        </tr>
                        <tr>
                            <td>1</td>
                            <td>CCCC</td>
                            <td>12366456456</td>
                            <td>禁用</td>
                            <td>
                                <button class="btn btn-primary">启动</button>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <!-- 页数 -->
                <nav class="user-pag pull-right">
                    <ul class="pagination">
                        <li class="btn-le">
                            <span>
                                <span aria-hidden="true">&laquo;</span>
                            </span>
                        </li>
                        <li class="user-pages">
                            <!-- <span>1 <span class="sr-only">(current)</span></span> -->
                        </li>
                        <li class="btn-rg">
                            <span>
                                <span aria-hidden="true">&raquo;</span>
                            </span>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </div>

    <!-- bootstrap 插件中的 模态框 -->
    <!-- Button trigger modal -->
    <!-- <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
        Launch demo modal
    </button> -->

    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">温馨提示</h4>
                </div>
                <div class="modal-body">
                    你确定要执行此次操作吗?
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary btn-affirm1" data-dismiss="modal">确定</button>
                </div>
            </div>
        </div>
    </div>



    <!-- 模板引擎 -->
    <script type="text/html" id="tmp">
       {{each rows v i}}
        <tr tx={{v.id}}>
            <td>{{(page-1)*size+i+1 }}</td>
            <td>{{v.username}}</td>
            <td>{{v.mobile}}</td>
            <td>
                {{v.isDelete == 0? "禁用":"开启"}}
            </td>
            <td>
               {{if(v.isDelete==0)}}
               <button class="btn btn-primary" data-toggle="modal" data-target="#myModal">启动</button>
               {{else}}
               <button class="btn btn-danger" data-toggle="modal" data-target="#myModal">禁用</button>
               {{/if}}
            </td>
        </tr>
       {{/each}}
    </script>
    <script src="./lib/jquery/jquery.js"></script>
    <script src="./lib/bootstrap/js/bootstrap.js"></script>
    <script src="./lib/bootstrap-validator/js/bootstrapValidator.js"></script>
    <script src="./lib/nprogress/nprogress.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/user.js"></script>
</body>

</html>